/**
 * 
 */
package com.puneet.graphqueries;

import com.puneet.graphqueries.net.TCPMessageSender;
import com.puneet.graphqueries.yamlconfig.Configuration;

/**
 * @author puneet
 *
 */
public class KHopNodeNotFoundHandlerImpl implements KHopNodeNotFoundHandler {
	private Configuration config;
	public KHopNodeNotFoundHandlerImpl(Configuration config) {
		this.config = config;
	}
	@Override
	public void handleNodeNotFound(String node,int k) {
		String msg = "node: "+node+" k: "+k;
		TCPMessageSender sender = new TCPMessageSender();
		sender.sendMessage(msg, config.getPartitions());
	}

}
